﻿using UnityEngine;
using System.Collections;
using DG.Tweening;

public class InfoView : MonoBehaviour
{
    public GameObject backBtn;
    

	// Use this for initialization
	void Start () {
        EventTriggerListener.Get(backBtn).onClick = OnBack;

    }

    // Update is called once per frame
    void Update () {
	
	}

    public void OnBack(GameObject obj)
    {
        transform.localScale = new Vector3(1, 1, 1);
        Tweener tw = transform.DOScale(new Vector3(0, 0, 0), 0.3f).SetEase(Ease.OutBack);
        gameObject.SetActive(false);

    }
}
